<?php

namespace Home\Controller;
use Think\Controller;
use Org;
//little Wu begin
use Think\Easemob;
//little Wu end
class TestController extends Controller {
    public function index()
    {
        import("Org.Wechat.wechat");
        $config = M("wxConfig")->find(1);
        $wxObj = new \Org\Wechat\Wechat($config);
        $openid = $wxObj->getRev()->getRevFrom();
        $geo=$wxObj->getRev()->getRevEventGeo();
//        $user=M("user")->where(array("openid"=>$openid))->find();
    }
}
?>